export const imagePaths: string[] = [
    'https://js.ibaotu.com/act/24/07/18/6698890e7f987.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890e795ed.jpg',
    'https://js.ibaotu.com/act/24/07/18/669889070786a.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890e7b5b0.jpg',
    'https://js.ibaotu.com/act/24/07/18/6698890ecefdf.jpg'
];

export const imagePaths2: string[] = [
    'https://js.ibaotu.com/act/24/08/28/66ced10d72585.jpg',
    'https://js.ibaotu.com/act/24/08/28/66ced0fa6f05b.jpg',
    'https://js.ibaotu.com/act/24/08/28/66ced9c7bef06.jpg',
    'https://js.ibaotu.com/act/24/08/28/66ced0fa77d81.jpg',
    'https://js.ibaotu.com/act/24/08/28/66ced9cb2d0a9.jpg'
];

export const imagePaths3: string[] = [
    'https://js.ibaotu.com/act/24/08/21/66c564f3c4cb3.jpg',
    'https://js.ibaotu.com/act/24/08/16/66befb9d425d8.jpg',
    'https://js.ibaotu.com/act/24/08/16/66befba186c27.jpg',
    'https://js.ibaotu.com/act/24/08/16/66befba5649ad.jpg',
    'https://js.ibaotu.com/act/24/08/21/66c5651e78599.jpg'
];

export const imagePaths4: string[] = [
    'https://video.699pic.com/videos/27/06/87/a_66d58a9f27c6517252706871645.mp4',
    'https://video.699pic.com/videos/68/63/79/a_jgdSKUp1CWTj1725686379_10s.mp4',
    'https://video.699pic.com/videos/59/36/18/a_Vxt4q16JIchD1725593618_10s.mp4',
    'https://video.699pic.com/videos/90/16/01/a_sWJRGiseKQ1d1724901601_10s.mp4',
    'https://video.699pic.com/videos/60/43/61/a_66daa2096544917256043614172_10s.mp4'
];

interface Keyword {
    titletext: string;
    titleurl: string;
}

interface Similar {
    similartext: string;
    similarurl: string;
}

interface DataItem {
    id: number;
    name: string;
    flag: boolean;
    image: string;
    video?: string;
}

interface AllDataItem {
    title: string;
    keyword: Keyword[];
    similar: Similar[];
    bgimg: string;
    data: DataItem[];
}

export const allData: { [key: number]: AllDataItem } = {
    1: {
        title: "中秋节海报",
        keyword: [{ titletext: "中秋", titleurl: 'https://ibaotu.com/tupian/zhongqiu/1-1-106-0-0-1-c0_0-1.html' }],
        similar: [{ similartext: "放假通知海报", similarurl: 'https://ibaotu.com/special-1080/1.html' }],
        bgimg: 'https://js.ibaotu.com/act/23/07/06/64a66717d2507.png',
        data: Array.from({ length: 71 }, (_, i) => ({
            id: i + 1,
            name: `中秋节 ${i + 1}`,
            flag: i % 3 === 0,
            image: imagePaths[Math.floor(Math.random() * imagePaths.length)],
        }))
    },
    2: {
        title: "秋季海报",
        keyword: [{ titletext: "秋季", titleurl: 'https://ibaotu.com/tupian/qiuji/1-1-100-0-0-1-c0_0-1.html' }],
        similar: [{ similartext: "秋季H5", similarurl: 'https://ibaotu.com/special-1141/1.html' }],
        bgimg: 'https://js.ibaotu.com/act/23/07/06/64a6671747eee.png',
        data: Array.from({ length: 33 }, (_, i) => ({
            id: i + 1,
            name: `视频 ${i + 1}`,
            flag: i % 3 === 0,
            image: imagePaths2[Math.floor(Math.random() * imagePaths2.length)],
        }))
    },
    3: {
        title: "会议开场快闪视频",
        keyword: [
            { titletext: "会议", titleurl: 'https://ibaotu.com/tupian/huiyi/7-7-5023-0-0-0-c0_0-1.html' },
            { titletext: "开场", titleurl: 'https://ibaotu.com/tupian/kaichang/7-7-5023-0-0-0-c0_0-1.html' },
            { titletext: "快闪", titleurl: 'https://ibaotu.com/tupian/kuaishan/7-7-5023-0-0-0-c0_0-1.html' },
            { titletext: "发布会", titleurl: 'https://ibaotu.com/tupian/fabuhui/7-7-5023-0-0-0-c0_0-1.html' },
            { titletext: "年会", titleurl: 'https://ibaotu.com/tupian/nianhui/7-7-5023-0-0-0-c0_0-1.html' }
        ],
        similar: [
            { similartext: "会议开场配乐", similarurl: "https://ibaotu.com/special-1840/1.html" },
            { similartext: "科技会议开场", similarurl: "https://ibaotu.com/special-1157/1.html" },
            { similartext: "主体会议背景视频", similarurl: "https://ibaotu.com/special-1388/1.html" }
        ],
        bgimg: 'https://js.ibaotu.com/act/23/03/06/64054d22305b6.jpg',
        data: Array.from({ length: 28 }, (_, i) => ({
            id: i + 1,
            name: `秋季 ${i + 1}`,
            flag: i % 3 === 0,
            image: imagePaths3[Math.floor(Math.random() * imagePaths3.length)],
            video: imagePaths4[Math.floor(Math.random() * imagePaths4.length)],
        }))
    }
};
